DLCardTokenizer

class DLCardTokenizer @JvmOverloads constructor(apiKey: String, countryCode: String, testMode: Boolean = false)

Entry point for dLocal Card Tokenizer Initialize Card Tokenizer with the specified configuration.

Constructors

Link copied to clipboard
constructor(apiKey: String, countryCode: String, testMode: Boolean = false)

Creates an instance of DLCardTokenizer

Functions

Link copied to clipboard
fun getBinInformation(binNumber: String, currencyCode: String? = null, amount: Double? = null, onSuccess: (binInfo: DLBinInfo) -> Unit, onError: (error: DLError) -> Unit)

Get information about a card from its bin number (first 6 digits)

Link copied to clipboard
fun tokenizeCard(card: DLCardData, onSuccess: (cardToken: DLCardToken) -> Unit, onError: (error: DLError) -> Unit)